using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace CourseSync.LibFetcher.Fetcher
{
    public class FakeBrowserDecorator
    {
        public static void UseFirefox(HttpWebRequest request)
        {
            request.ServicePoint.Expect100Continue = false;
            request.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6";
            request.Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";
            request.ContentType = "application/x-www-form-urlencoded";

            //wc.Headers.Set("Accept-Language", "zh-cn,zh;q=0.5");
            //wc.Headers.Set("Accept-Encoding", "gzip,deflate");
            //wc.Headers.Set("Accept-Charset", "GB2312,utf-8;q=0.7,*;q=0.7");
            //wc.Headers.Set("Referer", "http://learn.tsinghua.edu.cn/");
            //request.Referer = "http://learn.tsinghua.edu.cn/";
        }
    }
}
